package com.example.application.views.util;

import com.google.gson.Gson;

import java.util.Map;

public class MapToJsonUtil {

    private MapToJsonUtil(){

    }

    public static String getUrl(Map<String, Object> map, String oldUrl){
        Gson gson=new Gson();
        String json = gson.toJson(map);
        String str = json.replace("\"", "%22").replace("{", "%7b").replace("}", "%7d");
        String url=oldUrl+str;
        return url;
    }

}
